package com.neu.questionnaireplus.entity;

import java.util.Date;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Group {

  private String id;

  @NotNull(message = "群组名称不能为空")
  @Size(min = 4, max = 64, message = "群组名称长度必须在4-64个字符")
  private String groupname;

  private String introduction;

  private Date createdDate;

  private Integer numbers;

  private Integer delFlag;

}
